abstract class Fruit {
    protected Color color; // 桥接关键点

    public Fruit(Color color) {
        this.color = color;
    }

    public abstract void eat();
}

class Apple extends Fruit {
    public Apple(Color color) {
        super(color);
    }

    @Override
    public void eat() {
        System.out.println("吃" + color.applyColor() + "苹果");
    }
}

class Banana extends Fruit {
    public Banana(Color color) {
        super(color);
    }

    @Override
    public void eat() {
        System.out.println("吃" + color.applyColor() + "香蕉");
    }
}

